﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Gizmox.WebGUI.Forms;
using System.Drawing;
using GuiLabs.Undo;

namespace Bronze.ReportBuilder
{
    public class FormDesignerHostPanel : PanelEx ,IResizeHost
    {
        public frmDesigner Host;
        private int _xOffset;
        private int _yOffset;

        public int XOffset
        {
            get { return _xOffset; }
            set { _xOffset = value; }
        }

        public int YOffset
        {
            get { return _yOffset; }
            set { _yOffset = value; }
        }

        public void SetSize(Control control, Size size)
        {
            DoAction.SetSize(Host.ActionManager, control, size, true);
        }

        public void SelectControl(Control ctl, bool ctrl)
        {
            Host.formSlection.RefreshSize();
        }
    }
}